package com.cos.entity;

import java.util.List;


/**
  * @author: zxc
  * @return:   
  * @time:  2021/5/13 21:05
  * @description: 
  */
public class Dept {
    private Integer dno;
    private String dname;

    private List<Emp> emps;

    public List<Emp> getEmps() {
        return emps;
    }

    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "dno=" + dno +
                ", dname='" + dname + '\'' +
                '}';
    }

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Dept() {
    }

    public Dept(Integer dno, String dname) {
        this.dno = dno;
        this.dname = dname;
    }
}
